home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODFDev / Nothing / Sources / Part.r < prev    next >
Encoding:
Text File  |  1996-12-16  |  5.7 KB  |  277 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Part.r
  4. //    Release Version:    $ ODF 3 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #define SystemSevenOrBetter 1            // we want the extended types
  11. #define    SystemSevenOrLater    1            // Types.r uses this variable
  12.  
  13. #include "Types.r"
  14. #include "SysTypes.r"
  15. #include "CodeFragmentTypes.r"
  16.  
  17. #ifndef __ODTYPES_R__
  18. #include "ODTypes.r"
  19. #endif
  20.  
  21. #ifndef FWBLDDEF_H
  22. #include "FWBldDef.h"
  23. #endif
  24.  
  25. #ifndef DEFINES_K
  26. #include "Defines.k"
  27. #endif
  28.  
  29. #ifndef BINDING_K
  30. #include "Binding.k"
  31. #endif
  32.  
  33. //-------------------------------------------------------------------------------------
  34. // cfrg Resource
  35. //-------------------------------------------------------------------------------------
  36.  
  37. resource 'cfrg' (0) {
  38.     {    /* array memberArray: 2 elements */
  39.         /* [1] */
  40. #ifdef FW_BUILD_MAC68K
  41.         kMotorola,
  42. #else
  43.         kPowerPC,
  44. #endif
  45.         kFullLib,
  46.         kNoVersionNum,
  47.         kNoVersionNum,
  48.         kDefaultStackSize,
  49.         kNoAppSubFolder,
  50.         kIsLib,
  51.         kOnDiskFlat,
  52.         kZeroOffset,
  53.         kWholeFork,
  54.         kODFNothingEditor,
  55.         /* [2] */
  56. #ifdef FW_BUILD_MAC68K
  57.         kMotorola,
  58. #else
  59.         kPowerPC,
  60. #endif
  61.         kFullLib,
  62.         kNoVersionNum,
  63.         kNoVersionNum,
  64.         kDefaultStackSize,
  65.         kNoAppSubFolder,
  66.         kIsLib,
  67.         kOnDiskFlat,
  68.         kZeroOffset,
  69.         kWholeFork,
  70.         "ODFNothing"
  71.     }
  72. };
  73.  
  74. //-------------------------------------------------------------------------------------
  75. // NMAP Resources
  76. //-------------------------------------------------------------------------------------
  77.  
  78. resource kODNameMappings (kKindCategoryMapID) {
  79.     kODKind,
  80.     {    /* array Types: 1 elements */
  81.         /* [1] */
  82.         kODFNothingKind,
  83.         kODIsAnISOStringList
  84.         {
  85.             {    /* array ClassIDs: 1 elements */
  86.                 /* [1] */
  87.                 kODFNothingCategory
  88.             }
  89.         }
  90.     }
  91. };
  92.  
  93. resource kODNameMappings (kEditorKindMapID) {
  94.     kODEditorKinds,
  95.     {    /* array Types: 1 elements */
  96.         /* [1] */
  97.         kODFNothingEditor,
  98.         kODIsAnISOStringList
  99.         {
  100.             {    /* array ClassIDs: 1 elements */
  101.                 /* [1] */
  102.                 kODFNothingKind
  103.             }
  104.         }
  105.     }
  106. };
  107.  
  108. resource kODNameMappings (kEditorUserStringMapID) {
  109.     kODEditorUserString,
  110.     {    /* array Types: 1 elements */
  111.         /* [1] */
  112.         kODFNothingEditor,
  113.         kODIsINTLText
  114.         {
  115.             smRoman,
  116.             langEnglish,
  117.             kODFNothingEditorUserString
  118.         }
  119.     }
  120. };
  121.  
  122. resource kODNameMappings (kKindUserStringMapID) {
  123.     kODKindUserString,
  124.     {    /* array Types: 1 elements */
  125.         /* [1] */
  126.         kODFNothingKind,
  127.         kODIsINTLText
  128.         {
  129.             smRoman,
  130.             langEnglish,
  131.             kODFNothingKindUserString
  132.         }
  133.     }
  134. };
  135.  
  136. resource kODNameMappings (kCategoryUserStringMapID) {
  137.     kODCategoryUserString,
  138.     {    /* array Types: 1 elements */
  139.         /* [1] */
  140.         kODFNothingCategory,
  141.         kODIsINTLText
  142.         {
  143.             smRoman,
  144.             langEnglish,
  145.             kODFNothingCategoryUserString
  146.         }
  147.     }
  148. };
  149.  
  150. resource kODNameMappings (kOldMacOSTypeMapID) {
  151.     kODKindOldMacOSType,
  152.     {    /* array KeyList: 1 elements */
  153.         /* [1] */
  154.         kODFNothingKind,
  155.         kODIsMacOSType {
  156.             kODFNothingDocumentOSType
  157.         }
  158.     }
  159. };
  160.  
  161. //-------------------------------------------------------------------------------------
  162. // BNDL Resources
  163. //-------------------------------------------------------------------------------------
  164.  
  165. resource 'FREF' (128) {
  166.     'shlb',
  167.     0,
  168.     ""
  169. };
  170.  
  171. resource 'FREF' (132) {
  172.     kODFNothingDocumentOSType,
  173.     1,
  174.     ""
  175. };
  176.  
  177. resource 'FREF' (133) {
  178.     kODFNothingStationeryOSType,
  179.     2,
  180.     ""
  181. };
  182.  
  183. resource 'BNDL' (128) {
  184.     kODFNothingPartEditorOSType,
  185.     0,
  186.     {    /* array TypeArray: 2 elements */
  187.         /* [1] */
  188.         'FREF',
  189.         {    /* array IDArray: 1 elements */
  190.             /* [1] */
  191.             0, 128
  192.         },
  193.         /* [2] */
  194.         'ICN#',
  195.         {    /* array IDArray: 1 elements */
  196.             /* [1] */
  197.             0, kEditorIconID
  198.         }
  199.     }
  200. };
  201.  
  202. resource 'BNDL' (129) {
  203.     kODShellSignature,
  204.     0,
  205.     {    /* array TypeArray: 2 elements */
  206.         /* [1] */
  207.         'FREF',
  208.         {    /* array IDArray: 2 elements */
  209.             /* [1] */
  210.             1, 132,
  211.             /* [2] */
  212.             2, 133
  213.         },
  214.         /* [2] */
  215.         'ICN#',
  216.         {    /* array IDArray: 2 elements */
  217.             /* [1] */
  218.             1, kDocumentIconID,
  219.             /* [2] */
  220.             2, kStationeryIconID
  221.         }
  222.     }
  223. };
  224.  
  225. data kODShellSignature (0, "Owner resource") {
  226.     $"00"                                                 /* . */
  227. };
  228.  
  229. data kODFNothingPartEditorOSType (0, "Owner resource") {
  230.     $"00"                                                 /* . */
  231. };
  232.  
  233. //-------------------------------------------------------------------------------------
  234. // kind Resources
  235. //-------------------------------------------------------------------------------------
  236.  
  237. // Kind resources affect the text Finder displays in the
  238. // "kind" column and file info dialog. This feature was
  239. // introduced as part of Macintosh Easy Open.
  240. //
  241. resource 'kind' (1000) {
  242.     kODFNothingPartEditorOSType,
  243.     0, /* region = USA */
  244.     {
  245.         'shlb', "OpenDoc™ editor"
  246.     }
  247. };
  248.         
  249. resource 'kind' (1001) {
  250.     kODShellSignature,
  251.     0, /* region = USA */
  252.     {
  253.         kODFNothingDocumentOSType, kODFNothingEditorUserString" document",
  254.         kODFNothingStationeryOSType, kODFNothingEditorUserString" stationery"
  255.     }
  256. };
  257.  
  258. //-------------------------------------------------------------------------------------
  259. // STR resources
  260. //-------------------------------------------------------------------------------------
  261. // The -16397 string will be displayed by Finder when a user
  262. // tries to open the editor shared library. The string should
  263. // give the user a little detail about the part's capabilities
  264. // and enough information to install the part in the correct location.
  265. //
  266. resource 'STR ' (-16397, purgeable) {
  267.     "OpenDoc™ editor\n\nTo work properly, the “ODFNothing” shared library"
  268.     " should be placed in the Editors folder.  To create a new document, "
  269.     "open a stationery pad."
  270. };
  271.  
  272. //-------------------------------------------------------------------------------------
  273. // Other resources
  274. //-------------------------------------------------------------------------------------
  275.  
  276. include "MacIcons.rsrc" not 'ckid';
  277.